package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 人口信息对象 population
 * 
 * @author ruoyi
 * @date 2024-10-15
 */
public class Population extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 身份证号码 */
    @Excel(name = "身份证号码")
    private String idnum;

    /** 生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 性别 */
    @Excel(name = "性别")
    private String genderId;

    /** 民族 */
    @Excel(name = "民族")
    private String nationId;

    /** 血型 */
    @Excel(name = "血型")
    private String bloodId;

    /** 教育情况 */
    @Excel(name = "教育情况")
    private String eduId;

    /** 婚姻状况 */
    @Excel(name = "婚姻状况")
    private String marryId;

    /** 残疾情况 */
    @Excel(name = "残疾情况")
    private String disabilityId;

    /** 兵役状况 */
    @Excel(name = "兵役状况")
    private String militaryId;

    /** 人口类型 */
    @Excel(name = "人口类型")
    private String popTypeId;

    /** 户籍所在地址 */
    @Excel(name = "户籍所在地址")
    private String address;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setIdnum(String idnum) 
    {
        this.idnum = idnum;
    }

    public String getIdnum() 
    {
        return idnum;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setGenderId(String genderId) 
    {
        this.genderId = genderId;
    }

    public String getGenderId() 
    {
        return genderId;
    }
    public void setNationId(String nationId) 
    {
        this.nationId = nationId;
    }

    public String getNationId() 
    {
        return nationId;
    }
    public void setBloodId(String bloodId) 
    {
        this.bloodId = bloodId;
    }

    public String getBloodId() 
    {
        return bloodId;
    }
    public void setEduId(String eduId) 
    {
        this.eduId = eduId;
    }

    public String getEduId() 
    {
        return eduId;
    }
    public void setMarryId(String marryId) 
    {
        this.marryId = marryId;
    }

    public String getMarryId() 
    {
        return marryId;
    }
    public void setDisabilityId(String disabilityId) 
    {
        this.disabilityId = disabilityId;
    }

    public String getDisabilityId() 
    {
        return disabilityId;
    }
    public void setMilitaryId(String militaryId) 
    {
        this.militaryId = militaryId;
    }

    public String getMilitaryId() 
    {
        return militaryId;
    }
    public void setPopTypeId(String popTypeId) 
    {
        this.popTypeId = popTypeId;
    }

    public String getPopTypeId() 
    {
        return popTypeId;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("idnum", getIdnum())
            .append("birthday", getBirthday())
            .append("genderId", getGenderId())
            .append("nationId", getNationId())
            .append("bloodId", getBloodId())
            .append("eduId", getEduId())
            .append("marryId", getMarryId())
            .append("disabilityId", getDisabilityId())
            .append("militaryId", getMilitaryId())
            .append("popTypeId", getPopTypeId())
            .append("address", getAddress())
            .append("createTime", getCreateTime())
            .toString();
    }
}
